package app.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * StuSolution entity. @author MyEclipse Persistence Tools
 */

public class StuSolution implements java.io.Serializable {

	// Fields

	private Integer SId;
	private Exam exam;
	private User user;
	private Integer objScore;
	private Integer subScore;
	private Integer totalScore;
	private Set stuAnswers = new HashSet(0);

	// Constructors

	/** default constructor */
	public StuSolution() {
	}

	/** minimal constructor */
	public StuSolution(Exam exam, User user) {
		this.exam = exam;
		this.user = user;
	}

	/** full constructor */
	public StuSolution(Exam exam, User user, Integer objScore,
			Integer subScore, Integer totalScore, Set stuAnswers) {
		this.exam = exam;
		this.user = user;
		this.objScore = objScore;
		this.subScore = subScore;
		this.totalScore = totalScore;
		this.stuAnswers = stuAnswers;
	}

	// Property accessors

	public Integer getSId() {
		return this.SId;
	}

	public void setSId(Integer SId) {
		this.SId = SId;
	}

	public Exam getExam() {
		return this.exam;
	}

	public void setExam(Exam exam) {
		this.exam = exam;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getObjScore() {
		return this.objScore;
	}

	public void setObjScore(Integer objScore) {
		this.objScore = objScore;
	}

	public Integer getSubScore() {
		return this.subScore;
	}

	public void setSubScore(Integer subScore) {
		this.subScore = subScore;
	}

	public Integer getTotalScore() {
		return this.totalScore;
	}

	public void setTotalScore(Integer totalScore) {
		this.totalScore = totalScore;
	}

	public Set getStuAnswers() {
		return this.stuAnswers;
	}

	public void setStuAnswers(Set stuAnswers) {
		this.stuAnswers = stuAnswers;
	}

}